# coding: utf-8

import os


class IMContentType(object):
    """
    create by ld_wu 2018-03-21
    im 消息体类型
    """

    TXT = 0          # 文本
    IMG = 1          # 图片
    FILE = 2         # 文件
    VOICE = 3        # 语音
    ORDER = 4        # 订单
    BID_SUCCESS = 5  # 成功提醒
    RECHARGE = 6     # 充值提醒/代金券到期、赠送提醒
    FOLLOW = 7       # 跟进
    APPROVAL = 8     # 反馈
    TRANSFER = 9     # 转账
    TIMEOUT_PAYBACK = 10    # 超时退还
    FIRST_LOGIN = 11        # 首次登录app
    INVITE_NEW_USER = 12    # 邀请新下线
    RED_PACKET = 13          # 红包
    EXPIRED_RED_PACKET = 14  # 红包退款通知
    DISPATCH_RETURN = 15     # 退返派单点


class ActionType(object):
    """
    create by ld_wu 2018-04-16
    app 消息跳转类型
    """

    DEMAND_DETAIL = 1       # 跳转订单详情
    FEEDBACK = 2            # 跳转反馈页
    ACCOUNT = 3             # 跳转我的账户
    DEMAND_LIST = 4         # 项目大厅
    RELATION_PAGE = 5       # 拓展人脉页
    RED_PACKET_DETAIL = 6   # 红包详情


# 极光推送
JPUSH_APP_KEY = os.environ.get('jpush_app_key') or ''
JPUSH_APP_SECRET = os.environ.get('jpush_app_secret') or ''


JPUSH_ALIAS_PREFIX = os.environ.get('jpush_alias_prefix') or ''
